<?php
/**
* This template is used to display category post indexes.
*
* @package Natural
* @since Natural 3.0
*
*/
get_header(); ?>

<!-- BEGIN .row -->
<div class="row">

	<?php if ( is_active_sidebar( 'blog-sidebar' ) && is_active_sidebar( 'left-sidebar' ) ) : ?>

		<!-- BEGIN .four columns -->
		<div class="four columns">

			<?php get_sidebar('left'); ?>

		<!-- END .four columns -->
		</div>

		<!-- BEGIN .seven columns -->
		<div class="seven columns">

			<!-- BEGIN .postarea -->
			<div class="postarea middle">

				<?php get_template_part( 'loop', 'archive' ); ?>

			<!-- END .postarea -->
			</div>

		<!-- END .seven columns -->
		</div>

		<!-- BEGIN .five columns -->
		<div class="five columns">

			<?php get_sidebar('blog'); ?>

		<!-- END .five columns -->
		</div>

	<?php else : ?>

	<?php if ( is_active_sidebar( 'left-sidebar' ) ) : ?>

		<!-- BEGIN .three columns -->
		<div class="three columns">

			<?php get_sidebar('left'); ?>

		<!-- END .three columns -->
		</div>

		<!-- BEGIN .thirteen columns -->
		<div class="thirteen columns">

			<!-- BEGIN .postarea -->
			<div class="postarea right">

				<?php get_template_part( 'loop', 'archive' ); ?>

			<!-- END .postarea -->
			</div>

		<!-- END .thirteen columns -->
		</div>

	<?php else : ?>

	<?php if ( is_active_sidebar( 'blog-sidebar' ) ) : ?>

		<!-- BEGIN .eleven columns -->
		<div class="eleven columns">

			<!-- BEGIN .postarea -->
			<div class="postarea">

				<?php get_template_part( 'loop', 'archive' ); ?>

			<!-- END .postarea -->
			</div>

		<!-- END .eleven columns -->
		</div>

		<!-- BEGIN .five columns -->
		<div class="five columns">

			<?php get_sidebar('blog'); ?>

		<!-- END .five columns -->
		</div>

	<?php else : ?>

		<!-- BEGIN .sixteen columns -->
		<div class="sixteen columns">

			<!-- BEGIN .postarea full -->
			<div class="postarea full">

				<?php get_template_part( 'loop', 'archive' ); ?>

			<!-- END .postarea full -->
			</div>

		<!-- END .sixteen columns -->
		</div>

	<?php endif; ?>
	<?php endif; ?>
	<?php endif; ?>

<!-- END .row -->
</div>

<?php get_footer(); ?>